<?php
/* This file fetches the required files and initiates the webpage */

define('ABSPATH', dirname(__FILE__) . '/');

if(file_exists(ABSPATH.'config.php')) {
    include_once(ABSPATH.'config.php');
}
else{
    die('No configuration file present');
}

session_start();

include_once($includes_path.'/getVars.inc.php');
include_once($includes_path.'/ads.inc.php');

include_once(ABSPATH.'content/themes/'.THEME.'/pages/header.php');
include_once(ABSPATH.'content/themes/'.THEME.'/pages/subHeader.php');
include_once(ABSPATH.'content/themes/'.THEME.'/pages/page.php');
include_once(ABSPATH.'content/themes/'.THEME.'/pages/footer.php');
?>